import fetch from '@/utils/fetch'

// var request = require('request')

export function addBillInfo (data) {
  return fetch({
    url: '/myweb/saveData.php',
    method: 'post',
    params: data
  })
}
export function test1 () {
  return fetch({
    url: '/aliyun/test.php',
    method: 'get',
    params: {
      name: 'lihao'
    }
  })
}
export function test () {
  // request.get({
  //   qs: '',
  //   json: true,
  //   url: 'http://127.0.0.1/test.php'
  // }, function (err, res, body) {
  //   if (!err && res.statusCode === 200) {
  //     console.log('success:', res)
  //   } else {
  //     console.log('Error:', err)
  //   }
  // })
  return fetch({
    url: '/tms-web/orderManager/orderLine',
    method: 'get',
    params: {
      name: 'lihao'
    }
  })
}
